<div id='header1'>
<?php $friend=$this->requestAction('Users/friend');
    $name=$this->requestAction('Users/view');
    $count=$this->requestAction('Users/count');   ?>   
    <a style="padding-left: 50%;"><?php echo $this->Html->image($name['Profile']['avatar'],array('alt'=>'CakePHP','width'=>'40px','height'=>'40px'));?>
    <?php echo $name['Profile']['name'];
   // echo '   ';
    echo $this->Html->link('Bạn có: '.$count.'  lời mời kết bạn !',array('controller'=>'Users','action'=>'listaddfriend'));?></a>
    <ul>
    <li> <a href="#"><img src="img/cd.png"/></a>
    <ul>
    <li><a href="../Profiles/updateprofile/<?php echo $name['Profile']['id'];?>">Profiles</a></li> 
    <li><a href="../Users/changepassword/<?php echo $name['User']['id']; ?>"><?php echo 'Đổi mật khẩu';?></a></li> 
    <li><a href="../Users/logout">Đăng xuất</a></li>
    </ul> 
    </li>
    </ul>			
</div>